/**
 * 用户表
 */
const mongoose = require('mongoose')
const Schema = mongoose.Schema

const account = new Schema({
  token: String,
  avatar: String,
  name: String,
  phone: String,
  weipayId: {
    type: String,
    default: ''
  },
  password: String,
  create_time: {
    type: Number,
    default: Date.now
  }
})

module.exports = mongoose.model('account', account)
